<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The APCIterator class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.apc-store.html">apc_store</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="apciterator.construct.html">APCIterator::__construct</a></div>
 <div class="up"><a href="book.apc.html">APC</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.apciterator" class="reference">

 <h1 class="title">The APCIterator class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL apc &gt;= 3.1.1)</p>


  <div class="section" id="apciterator.intro">
   <h2 class="title">简介</h2>
   <p class="para">
   <strong class="classname">APCIterator</strong> 类使得遍历大容量APC缓存更容易，这是很有帮助的因为它允许同时获取已经定义的每个被锁定实例的条目数，因此它释放的其他活动的缓存锁，而不是阻碍整个缓存以完成获取100（默认）个缓存数据的迭代，在大缓存条目。 此外，使用正则匹配效率更高，因为它被改为C级别的实现。
   </p>
  </div>


  <div class="section" id="apciterator.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">APCIterator</strong>
     </span>
     
     <span class="oointerface">implements 
      <span class="interfacename"><strong class="interfacename">Iterator</strong></span>
     </span>

     <span class="oointerface">, 
      <span class="interfacename"><strong class="interfacename">Traversable</strong></span>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="apciterator.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$cache</code></span>
   [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$search</code><span class="initializer"> = null</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$format</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$chunk_size</code><span class="initializer"> = 100</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$list</code></span>
  ]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mixed</span><span class="methodname"><a href="apciterator.current.html" class="methodname">current</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="apciterator.gettotalcount.html" class="methodname">getTotalCount</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="apciterator.gettotalhits.html" class="methodname">getTotalHits</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="apciterator.gettotalsize.html" class="methodname">getTotalSize</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="apciterator.key.html" class="methodname">key</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="apciterator.next.html" class="methodname">next</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="apciterator.rewind.html" class="methodname">rewind</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="apciterator.valid.html" class="methodname">valid</a></span>
    ( <span class="methodparam">void</span>
   )</div>

   }</div>


  </div>

 </div>

 


















































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="apciterator.construct.html">APCIterator::__construct</a> — 构造一个 APCIterator 迭代器对象</li><li><a href="apciterator.current.html">APCIterator::current</a> — 获取当前项</li><li><a href="apciterator.gettotalcount.html">APCIterator::getTotalCount</a> — 获取总数</li><li><a href="apciterator.gettotalhits.html">APCIterator::getTotalHits</a> — 获取缓存命中数</li><li><a href="apciterator.gettotalsize.html">APCIterator::getTotalSize</a> — 获取所有缓存的尺寸大小</li><li><a href="apciterator.key.html">APCIterator::key</a> — Get iterator key获取迭代器的键</li><li><a href="apciterator.next.html">APCIterator::next</a> — 移到下一项</li><li><a href="apciterator.rewind.html">APCIterator::rewind</a> — 倒退迭代器</li><li><a href="apciterator.valid.html">APCIterator::valid</a> — 检查当前位置是否有效</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.apc-store.html">apc_store</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="apciterator.construct.html">APCIterator::__construct</a></div>
 <div class="up"><a href="book.apc.html">APC</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
